<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}

			#wrap {
				position: absolute;
				left: 50%;
				top: 50%;
				margin-left: -100px;
				margin-top: -100px;

				width: 200px;
				height: 200px;
				border: 1px solid;
				border-radius: 50%;

				background: pink;

				text-align: center;
				font: 50px/200px "agency fb";
				transition: 1s;
				/*3D旋转的景深，给子元素用的。*/
				perspective: 400px;
			}

			.inner {
				position: absolute;
				left: 50%;
				top: 50%;
				margin-left: -100px;
				margin-top: -100px;

				width: 200px;
				height: 200px;
				border: 1px solid;
				border-radius: 50%;

				background: pink;

				text-align: center;
				font: 50px/200px "agency fb";
				transition: 1s;
			}

			#wrap:hover .inner {
				/* transform: rotateX(180deg); */

				/*这里确定了旋转轴和旋转的角度*/
				/* transform: rotate3d(1,1,1,360deg); */

				/*往Z轴的负方向移动50px距离*/
				/* transform: translateZ(50px); */

				/*XYZ三个轴上面的移动 注意Z轴的景深，是近大远小的感觉*/
				/* transform: translate3d(-10%, -20%, -50px); */

				/* transform: scale3d(.5, .6, .9); */

				/*注意这两个的顺序，前面一个是放大两倍，后面一个放大四倍*/
				/* transform: translateZ(100px) scaleZ(2); */
				transform: scaleZ(2) translateZ(100px);
			}
		</style>
	</head>
	<body>
		<div id="wrap">
			<div class="inner">123</div>
		</div>
	</body>
</html>
